from ogreEx.blender.types import Header
from ogreEx.ui.UIClass import MINI
from ogreEx.ui.operator.COgreToggleInterfaceOp import OgreToggleInterfaceOp

@MINI
class INFO_HT_microheader(Header):
    bl_space_type = 'INFO'
    def draw(self, context):
        layout = self.layout
        try:
            if OgreToggleInterfaceOp.TOGGLE:
                layout.operator('ogre.toggle_interface', text='Ogre', icon='CHECKBOX_DEHLT')
            else:
                layout.operator('ogre.toggle_interface', text='Ogre', icon='CHECKBOX_HLT')
        except: pass    # STILL REQUIRED?